import request from '@/utils/request'

// 查询单表多时段数据列表
export function getMainHeadDataDb() {
  return request({
    url: '/datastatistics/mainIndex/getMainHeadDataDb',
    method: 'get',
  })
}
// 查询多表同时段数据列表
export function getMainChartsDataDb(query) {
    return request({
      url: '/datastatistics/mainIndex/getMainChartsDataDb/?startTime=' + query.startTime+'&endTime='+query.endTime+'&feezeTime='+query.feezeTime+'&getTimeN='+query.getTimeN,
      method: 'get',
    //   params: query
    })
  }
// 大用户表首页数据-基础
export function homepageDataForDb() {
  return request({
    url: '/homepage/homepageDataForDb',
    method: 'get'
  })
}
// 大用户表首页数据-昨日日用量排名前十的设备
export function usageTop10ForDb(query) {
  return request({
    url: '/homepage/usageTop10ForDb',
    method: 'get',
    params: query
  })
}
// 大用户表首页数据-昨日夜间小流排名前十的设备
export function nightMinFlowTop10ForDb() {
  return request({
    url: '/homepage/nightMinFlowTop10ForDb',
    method: 'get'
  })
}
// 大用户表首页数据-月用量数据
export function homepageMonthUsageDataForDb(query) {
  return request({
    url: '/homepage/homepageMonthUsageDataForDb',
    method: 'get',
    params: query,
  })
}
// 大用户表首页数据-日用量数据
export function homepageDayUsageDataForDb(query) {
  return request({
    url: '/homepage/homepageDayUsageDataForDb',
    method: 'get',
    params: query,
  })
}
